home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 125
/
Freelog_MarsAvril2015_No125.iso
/
Musique
/
Quod Libet
/
quodlibet-3.3.0-installer.exe
/
bin
/
quodlibet
/
ext
/
events
/
iradiolog.pyc
(
.txt
)
< prev
next >
Wrap
Python Compiled Bytecode
|
2014-12-31
|
1KB
|
36 lines
# Source Generated with Decompyle++
# File: in.pyc (Python 2.7)
from quodlibet import app
from quodlibet.plugins.events import EventPlugin
class IRadioLog(EventPlugin):
PLUGIN_ID = 'Internet Radio Log'
PLUGIN_NAME = _('Internet Radio Log')
PLUGIN_DESC = _('Record the last 10 songs played on radio stations, and list them in the seek context menu.')
PLUGIN_ICON = 'gtk-edit'
PLUGIN_VERSION = '0.22'
def plugin_on_song_started(self, song):
if song is None:
return None
player = None.player
if player.song.multisong and not (song.multisong):
time = player.get_position()
title = song('title')
bookmarks = player.song.bookmarks
bookmarks.append([
time // 1000,
title])
try:
bookmarks.pop(-10)
except IndexError:
pass
player.song.bookmarks = bookmarks
elif song.multisong:
song.bookmarks = []